﻿#pragma once

#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include <curl/curl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>


/*linux系统下的实现类*/
class FTPs
{
public:
	static int ftpUpload(const char* remoteFtpPath, const char* localFilePath, long timeout); //FTP上传函数
	static int ftpDownload(const char* remoteFtpPath, const char* localFilePath, long timeout); //FTP上传函数
private:
	static size_t writeData(void* buffer, size_t size, size_t nmemb, void* userp);//FTP写入函数
	static size_t readFunc(void* ptr, size_t size, size_t nmemb, void* stream); //FTP读取函数

};

